package cn.kgc.crowdfundingadminspringboot.service;

import cn.kgc.crowdfundingadminspringboot.pojo.Admin;
import com.example.crowdfundingadminspringboot.pojo.Admin;
import com.example.crowdfundingadminspringboot.pojo.AdminExample;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminService {
    
    //根据id查询用户
    public Admin selectById(Integer id);
    
    //登录
    public Admin login(String loginAcct, String userPswd);
    
    //分页
    PageInfo<Admin> queryForKeywordSearch(Integer pageNum, Integer pageSize, String keyword);
    
    int countByExample(AdminExample example);

    int deleteByExample(AdminExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    List<Admin> selectByExample(AdminExample example);

    Admin selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
}